package com.fxp.project.jiuselu.web.models.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fxp.project.jiuselu.web.models.goods.entity.JslGoods;
import com.fxp.project.jiuselu.web.models.goods.vo.GoodsListVo;
import com.fxp.project.jiuselu.web.models.goods.vo.GoodsVo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 主商品表 Mapper 接口
 * </p>
 *
 * @author Jason.Wang
 * @since 2021-11-01
 */
public interface JslGoodsMapper extends BaseMapper<JslGoods> {

    /**
     * selectGoodsListPageInfo: 查询当亲的产品分类<br/>
     *
     * @param cateId
     * @param extendCateId
     * @param thirdCateId
     * @param discover
     * @param sample
     * @param keyword
     * @param currentDate
     * @return
     * @author Kai.Wang
     * @date 2021/11/23 16:23
     */
    List<GoodsListVo> selectGoodsListPageInfo(@Param("cateId") Long cateId, @Param("extendCateId") Long extendCateId,
        @Param("thirdCateId") Long thirdCateId, @Param("discover") Integer discover, @Param("sample") Integer sample,
        @Param("keyword") String keyword, @Param("currentDate") LocalDateTime currentDate,@Param("salesCount") Integer salesCount,
        @Param("attrPrice") Integer attrPrice,@Param("goodsSort") Integer goodsSort);

    /**
     * selectGoodsVoByGoodsId: 获取当前商品的详细信息<br/>
     *
     * @param goodsId
     * @return
     * @author Jason.Wang
     * @date 2021/11/7 10:17 上午
     */
    GoodsVo selectGoodsVoByGoodsId(@Param("goodsId") Long goodsId);
}
